﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using FlyHorse.LIMS.Model;

namespace FlyHorse.LIMS.WinApp.SystemManageForms.SemiTestItemSetForm
{
    public partial class SemiTestItemSetDetailForm : DevExpress.XtraEditors.XtraForm
    {
        BLL.TestItemBll testItemBll = new BLL.TestItemBll();
       // BLL.BaseInformationBll baseInforBll = new BLL.BaseInformationBll();
        Action _RefreshGrid;
        public SemiTestItemSetDetailForm(Action RefreshGrid)
        {
            InitializeComponent();
            _RefreshGrid = RefreshGrid;
        }

        private void SemiTestItemSetDetailForm_Load(object sender, EventArgs e)
        {
            var testItemList = testItemBll.LoadEntities(m => true).ToList();
            lookUpSearchEdit_TestItem.Properties.DataSource = testItemList;
        }

        private void simpleButton_save_Click(object sender, EventArgs e)
        {
            //BaseInformation infor = new BaseInformation();
            //infor.BaseInformationKey = "SemiTestItem";
            //infor.BaseInformationValue =this.lookUpSearchEdit_TestItem.Text;
            //infor.BaseInformationNO = Convert.ToInt32(lookUpSearchEdit_TestItem.EditValue);

            //var res=  baseInforBll.AddEntity(infor);
            //if (res!=null)
            //{
            //    XtraMessageBox.Show("添加成功！");
            //    this.Close();
            //    _RefreshGrid();
            //}
        }
    }
}